package com.xxgc.eow.client.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

/**
 * @program: ExhibitionOfWorks
 * @description: 获取用户手机号返回结果
 * @author: Mr.Abel SJY
 * @Email thanksjava@qq.com
 * @create: 2023-05-09 22:54
 **/
@Component
@Data
@ToString
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Schema(name = "WechatPhoneInfoResponse", description = "获取用户手机号响应")
public class WechatPhoneInfoResponse {
    @Schema(description = "错误码")
    private Integer errcode;
    @Schema(description = "错误信息")
    private String errmsg;
    @Schema(description = "用户手机号信息")
    private PhoneInfo phone_info;

    @Schema(name = "PhoneInfo", description = "用户手机号信息")
    class PhoneInfo{
        @Schema(description = "用户绑定的手机号（国外手机号会有区号）")
        private String phoneNumber;
        @Schema(description = "没有区号的手机号")
        private String 	purePhoneNumber;
        @Schema(description = "区号")
        private String countryCode;
        @Schema(description = "区号")
        private Watermark 数据水印;

    }

    @Schema(name = "Watermark", description = "数据水印")
    class Watermark{
        @Schema(description = "用户获取手机号操作的时间戳")
        private String timestamp;
        @Schema(description = "小程序appid")
        private String appid;
    }
}
